// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-vo.ts.hbs生成
import { ControlVOBase } from '@/core';
import { transformValue } from '@/utils';
import { model } from './usr-0222816489-form-model';

export class FormControlVO extends ControlVOBase {
    constructor(data: any) {
        //  表单预置字段
        data.srfwfmemo = data['srfwfmemo'] ? data['srfwfmemo'] : '';
        data.srffrontuf = data['srffrontuf'] ? data['srffrontuf'] : '';
        super(data);
        //  表单自持属性
        this.$ownKeys = [    'avuechildthrees',
    'avuechildfours',
    'avuechildfives',
'srfupdatedate', 'srforikey', 'srfkey', 'srfmajortext', 'srftempmode', 'srfuf', 'srfdeid', 'srfsourcekey', 'avuetestname', 'avuetestid'];
    }
    get srfupdatedate() {
        return this.$DO.updatedate;
    }
    set srfupdatedate(value: any) {
        this.$DO.updatedate = value;
    }
    get srfkey() {
        return this.$DO.avuetestid;
    }
    set srfkey(value: any) {
        this.$DO.avuetestid = value;
    }
    get srfmajortext() {
        return this.$DO.avuetestname;
    }
    set srfmajortext(value: any) {
        this.$DO.avuetestname = value;
    }
    get avuetestname() {
        return this.$DO.avuetestname;
    }
    set avuetestname(value: any) {
        this.$DO.avuetestname = value;
    }
    get avuetestid() {
        return this.$DO.avuetestid;
    }
    set avuetestid(value: any) {
        this.$DO.avuetestid = value;
    }
    // 界面主键标识
    get avuetest() {
        return this.$DO.avuetestid;
    }

    set avuetest(value: any) {
        this.$DO.avuetestid = value;
    }

    //  工作流预置字段
    srfwfmemo: any;
    srffrontuf: any;

    //  无实体属性表单项
    get srftempmode() {
        return this.$DO.srftempmode;
    }

    set srftempmode(value: any) {
        this.$DO.srftempmode = value;
    }

    //  表单重复器
    get avuechildthrees() {
        return transformValue('avuechildthrees', model, true, this.$DO.avuechildthrees);
    }
    
    set avuechildthrees(value: any) {
        this.$DO.avuechildthrees = transformValue('avuechildthrees', model, false, value);
    }
    get avuechildfours() {
        return transformValue('avuechildfours', model, true, this.$DO.avuechildfours);
    }
    
    set avuechildfours(value: any) {
        this.$DO.avuechildfours = transformValue('avuechildfours', model, false, value);
    }
    get avuechildfives() {
        return transformValue('avuechildfives', model, true, this.$DO.avuechildfives);
    }
    
    set avuechildfives(value: any) {
        this.$DO.avuechildfives = transformValue('avuechildfives', model, false, value);
    }

    /**
     * 返回后台数据
     *
     * @return {*} 
     * @memberof FormControlVO
     */
	public getDo() {
        return {
            srffrontuf: this.srffrontuf,
            avuetestname: this.$DO.avuetestname,
avuechildthrees: this.$DO.avuechildthrees,
avuechildfours: this.$DO.avuechildfours,
avuechildfives: this.$DO.avuechildfives,
updatedate: this.$DO.updatedate,
avuetestid: this.$DO.avuetestid,
        }
	}

}